package test.cards;

import basemod.BaseMod;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.tempCards.Shiv;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.util.CardStats;
import test.character.Captain;
import test.uis.screens.SakiMoveScreen;

public class SakiMoveCaptain extends BaseCaptainCard {
    public static final String ID = makeID(SakiMoveCaptain.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Captain.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1
    );


    public SakiMoveCaptain() {
        super(ID, info);
        setAttr(0,0,0);
        setAttrUpg(0,0,0);
        setHasAnchor(true);
        exhaust=true;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        addToBot(new AbstractGameAction() {
            @Override
            public void update() {
                BaseMod.openCustomScreen(SakiMoveScreen.Enum.SAKIMOVE_SCREEN, "foobar", new Shiv());
                isDone = true;
            }
        });
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new SakiMoveCaptain();
    }

}
